<?php

declare (strict_types=1);
namespace App\Model;

use App\Traits\ModelLabelTrait;
use Hyperf\Database\Model\SoftDeletes;
use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property int $supervise_id 
 * @property int $sheet_id 
 * @property int $unit_id 
 * @property int $admin_id 
 * @property int $feed_status 
 * @property string $assign_txt 
 * @property string $feed_txt 
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 */
class SuperviseSheetAssign extends Model
{
    use SoftDeletes,ModelLabelTrait;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'supervise_sheet_assign';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'supervise_id',
        'sheet_id',
        'unit_id',
        'admin_id',
        'feed_status',
        'feed_txt',
        'assign_txt',
    ];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'int', 'supervise_id' => 'integer', 'sheet_id' => 'integer', 'unit_id' => 'integer', 'admin_id' => 'integer', 'feed_status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];

    const FEED_STATUS_DEFAULT = 0;
    const FEED_STATUS_REJECT = -1;
    const FEED_STATUS_SUCCESS = 1;

    const FEED_STATUS_LABELS = [
        self::FEED_STATUS_DEFAULT =>'待处理',
        self::FEED_STATUS_REJECT => '拒绝',
        self::FEED_STATUS_SUCCESS => '已处理'
    ];

}